package com.design.responsibility.football;

/**
 * @author xiemiao
 * @description
 * @date 2023/08/17
 */
public class Player2 implements Player {

    private Player nextPlayer;
    @Override
    public void setNextPlayer(Player nextPlayer) {
        this.nextPlayer = nextPlayer;
    }

    @Override
    public boolean handle(boolean isGoal) {
        if (!isGoal) {
            System.out.println("2号球员射门，球进了");
            return true;
        }
        return false;
    }
}
